<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %>

<ul>
	<c:choose>
		<c:when test="${not empty(embeddingAdapter)}">
			<li><a href='<spring:url value="${embeddingAdapter.personsHomeUrl}" htmlEscape="true"/>'><spring:message code="persons.home.title"/></a></li>
			<li><a href='<spring:url value="/${embeddingAdapter.name}/persons/search" htmlEscape="true"/>'><spring:message code="persons.search.title"/></a></li>
			<li><a href='<spring:url value="${embeddingAdapter.personsAddUrl}" htmlEscape="true"/>'><spring:message code="persons.add"/></a></li>
		</c:when>
		<c:otherwise>
			<li><a href='<spring:url value="/internal/persons" htmlEscape="true"/>'><spring:message code="persons.home.title"/></a></li>
			<li><a href='<spring:url value="/internal/persons/search" htmlEscape="true"/>'><spring:message code="persons.search.title"/></a></li>
			<li><a href='<spring:url value="/internal/persons/add" htmlEscape="true"/>'><spring:message code="persons.add"/></a></li>
		</c:otherwise>
	</c:choose>
</ul>
